package com.java.service.impl;

import java.util.List;

import com.java.pojo.OneMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.mapper.SysAuthorityBeanMapper;
import com.java.pojo.SysAuthorityBean;
import com.java.service.SysAuthorityService;

@Service
public class SysAuthorityServiceImpl implements SysAuthorityService {
   
	@Autowired
	private SysAuthorityBeanMapper sysAuthorityBeanMapper;

	public List<SysAuthorityBean> selectByParentId(Long parent) {
		return sysAuthorityBeanMapper.selectByParentId(parent);
	}

	/**
	 * 查询权限信息
	 * @return
	 */
	public List<OneMenu> selectSQAuthority() {
		return sysAuthorityBeanMapper.selectSQAuthority();
	}
	
	
}
